<taglib name='html' />
<include file="$includeFile.public_header" /><!--或是"__ADMIN__/header"-->

<css href="__ADMIN__/css/editor.css" />
<import type="js" file="Js.kindeditor/kindeditor" />
<script type="text/javascript">
    KindEditor.ready(function(K) {
        var colorpicker;
        K('#colorpicker').bind('click', function(e) {
            e.stopPropagation();
            if (colorpicker) {
                colorpicker.remove();
                colorpicker = null;
                return;
            }
            var colorpickerPos = K('#colorpicker').pos();
            colorpicker = K.colorpicker({
                x : colorpickerPos.x,
                y : colorpickerPos.y + K('#colorpicker').height(),
                z : 19811214,
                selectedColor : 'default',
                noColor : '无颜色',
                click : function(color) {
                    K('#color').val(color);
                    colorpicker.remove();
                    colorpicker = null;
                }
            });
        });
        K(document).click(function() {
            if (colorpicker) {
                colorpicker.remove();
                colorpicker = null;
            }
        });
    });
</script>

<!--  右边内容   -->
<div class="list_tit">
    <span class="tit_left">您当前的位置：首页 > 标签管理 > 标签<php>if($_GET['id']){echo '编辑';}else{echo '添加';}</php></span>
    <a href="__URL__/index/" class="tit_right">+管理标签</a>
</div>
<div class="page_list">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="list_table">
        <tr><th align="left" style="text-indent:5px;">标签<present name="$Think.get.id">编辑<else/>添加</present></th></tr>
    </table>
    <form action="__URL__/<php>if($_GET['id']){echo 'update';}else{echo 'insert';}</php>/p/{$Think.get.p}" name="art_add" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="{$Think.get.id}" />
        <table cellpadding="0" border="0" width="100%" class="add_table">
            <tr><th width="100">标签名称:</th>
                <td><input type="text" name="name" value="{$data.name}" size="25" maxlength="64" class="page_txt" /></td>
            </tr>
            <tr><th width="100">标签颜色:</th>
                <td><input type="text" name="color" size="14" maxlength="255" value="{$data.color}" readonly="readonly" class="page_txt" id="color" /><input type="button" class="fl" style="font-size:13px; color:#666666;" id="colorpicker" value="打开取色器" /></td></tr>
            <tr height="60">
                <th>&nbsp;</th>
                <td valign="middle"><input type="submit" name="edit_btn" class="btn" value="提 交" /></td>
            </tr>
        </table>
    </form>
    <div class="clr"></div>
</div>

<include file="$includeFile.public_footer" />